package com.by.biz;

import com.by.model.User;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface IUserBiz {
    List<User> getAll();
    //添加
    int addUser(User user);
    //删除
    int delUser(User user);

    /*Integer selectByNameAndPass(User user);

    Page queryUsersByPage(int currPage,int pageSize);*/
    //根据id查询
    User getUser(User user);
    //修改
    void editUser(User user);
    //登录
    User loginUser(User user);
    //注册
    int addreg(User user);
    //分页查询
    Page queryLikeUsers(Map<String,Object> cond);
}
